package d5_generics;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {
        ArrayList list = new ArrayList();
        list.add("sss");
        list.add(222);
        System.out.println(list);
        for (int i = 0; i < list.size(); i++) {
            System.out.print(list.get(i));
        }

        System.out.println("++++++++++++++++++++++++++++");
        MyArrayList<String> arrayList = new MyArrayList();
        arrayList.add("java");
        System.out.println(arrayList.get(0));


    }
}
